package com.ewo.service.impl.ApplicationPage;

import com.ewo.entity.ApplicationPage.CustomerEquipment;
import com.ewo.entity.ApplicationPage.CustomerProject;
import com.ewo.mapper.CustomerEquipmentMapper;
import com.ewo.mapper.CustomerProjectMapper;
import com.ewo.service.ApplicationPage.CustomerEquipmentService;
import com.ewo.service.ApplicationPage.CustomerProjectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CustomerEquipmentServiceImpl implements CustomerEquipmentService {
    @Resource
    CustomerEquipmentMapper customerEquipmentMapper;
    //根据员工id查找关联设备
    public List<CustomerEquipment> findCustomerEquipmentByEmpId(int empId){
        return customerEquipmentMapper.findCustomerEquipmentByEmpId(empId);
    }

    //根据客户id查找关联设备信息
    public CustomerEquipment  findCustomerEquipmentByCid(int cid){
        return customerEquipmentMapper.findCustomerEquipmentByCid(cid);
    }

}
